//
//  ViewController.m
//  IkongWuProgram
//
//  Created by 徐益智 on 16/2/16.
//  Copyright © 2016年 Vdianjing. All rights reserved.
//

#import "UILabel+Label.h"

@implementation UILabel (Label)

+ (UILabel *)labelWithFont:(CGFloat)font
              withTextColor:(UIColor *)textColor
        withBackgroundColor:(UIColor *)backgroundColor
          withTextAlignment:(NSTextAlignment)textAlignment
                   withText:(NSString *)text
            withNumberLines:(NSInteger)count
{
    UILabel *label = [[UILabel alloc] init];
    label.font = [UIFont systemFontOfSize:font];
    label.textColor = textColor;
    label.backgroundColor = backgroundColor;
    label.text = text;
    label.numberOfLines = count;
    label.textAlignment = textAlignment;
    
    return label;
}

@end
